package org.lanqiao.tjut.entity;

import java.util.ArrayList;
import java.util.List;

import org.lanqiao.tjut.service.GameService;
import org.lanqiao.tjut.service.GameServiceFactory;

public class GameServer {
	//游戏玩家队列
	private List<Player> lstPlayers;	
	// 游戏队列
	private List<Game> lstGames;
	
	public void doPlayingGame(){
		//service对象
		GameService gs =	GameServiceFactory.getGameServiceInstance();
		//初始化游戏信息，并选择游戏
		 Game game = gs.initGame(lstGames);		
		//组队
		lstPlayers = new ArrayList<Player>();
		//初始化玩家队列
		gs.initTeam(lstPlayers);
		// 开始游戏
		gs.playGame(lstPlayers,  game) ;		
	}
	
}
